package edu.smxy.associationmanagement.services.keyproject.impl;

import edu.smxy.associationmanagement.domain.KeyProject;
import edu.smxy.associationmanagement.mapper.KeyProjectMapper;
import edu.smxy.associationmanagement.services.keyproject.KeyProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* KeyProject 服务层接口实现类
* @date  2019/04/18
* @author: : SDH
* @description: 重点立项 服务层接口实现类
*/
@Service("KeyProjectService")
public class KeyProjectServiceImpl implements KeyProjectService {
	@Autowired
	KeyProjectMapper keyProjectMapper;

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return keyProjectMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(KeyProject record) {
		return keyProjectMapper.insert(record);
	}

	@Override
	public int insertSelective(KeyProject record) {
		return keyProjectMapper.insertSelective(record);
	}

	@Override
	public KeyProject selectByPrimaryKey(Integer id) {
		return keyProjectMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(KeyProject record) {
		return keyProjectMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(KeyProject record) {
		return keyProjectMapper.updateByPrimaryKey(record);
	}

	@Override
	public KeyProject selectByRecord(KeyProject record) {
		return keyProjectMapper.selectByRecord(record);
	}

	@Override
	public List<KeyProject> getAllRunningKeyProjectByAssId(int assid) {
		return keyProjectMapper.getAllRunningKeyProjectByAssId(assid);
	}
}
